package icasue.tools.sqlhelper.test.mapping.adaptor;

import icasue.tools.sqlhelper.test.mapping.marker.ColMapping;
import icasue.tools.sqlhelper.annotation.Primary;

import java.util.Collections;
import java.util.List;

/**
 * @Author: Qiao Hang
 * @CreateDate: 2021/9/27 下午4:41
 * @UpdateDate:
 * @Description:
 */
public class User extends Person{

    @Primary
    @ColMapping(column = "User_userId_")
    private Integer userId;

    @ColMapping(column = "User_username_")
    private String username;

    @Primary
    @ColMapping(column = "User_passWord_")
    private String passWord;

    private List<String> hobby = Collections.EMPTY_LIST;

    public User(){

    }

    public User(Integer userId, String username, String passWord, List<String> hobby, String sex, Double age, Boolean isAnimal){
        super(sex,age,isAnimal);
        this.userId = userId;
        this.username = username;
        this.passWord = passWord;
        this.hobby = hobby;
    }

}
